# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=polari
pkgver=41.0
pkgrel=0
pkgdesc="Polari is a simple IRC Client that is designed to integrate seamlessly with GNOME 3"
url="https://wiki.gnome.org/Apps/Polari"
arch="all !s390x !riscv64" # limited by gjs
license="GPL-2.0-or-later"
depends="telepathy-logger telepathy-idle telepathy-mission-control gspell"
makedepends="meson gobject-introspection-dev gtk+3.0-dev telepathy-glib-dev
	gjs-dev itstool"
checkdepends="appstream-glib mozjs78 desktop-file-utils"
subpackages="$pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/polari/${pkgver%.*}/polari-$pkgver.tar.xz
	merge_file-args.patch
	"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
98ae67b36a0a47bc536ce87668b3e9f7144c0196b520d7ac3885f9a6ca158027ec2afe1e9d8a8e29b2bcc55a0109f7cfbe17582ebc22f59250175c49dac71919  polari-41.0.tar.xz
da18a01a09f2c9b0d79028df6cd1b1d5f44650c96c63ab16f9cccd0df35a5058931f8ef0372db5012c98fd886f7de93f31f3a8d930642329f922b23bc59c9077  merge_file-args.patch
"
